package com.furusystems.games.haunter 
{
	import no.doomsday.dconsole2.core.plugins.IDConsolePlugin;
	import no.doomsday.dconsole2.core.plugins.PluginManager;
	import no.doomsday.dconsole2.DConsole;
	/**
	 * ...
	 * @author Andreas Rønning
	 */
	public class HaunterPlugin implements IDConsolePlugin
	{
		private var _console:DConsole;
		public function HaunterPlugin() 
		{
			
		}
		
		/* INTERFACE no.doomsday.dconsole2.core.plugins.IDConsolePlugin */
		
		public function initialize(pm:PluginManager):void 
		{
			_console = pm.console;
			pm.console.createCommand("playHaunter", play, "HaunterPlugin", "Play 'The Haunter of the Dark'");
		}
		
		private function play():void 
		{
			_console.print("The Haunter of the Dark, by H.P. Lovecraft");
		}
		
		public function shutdown(pm:PluginManager):void 
		{
			
		}
		
		public function get descriptionText():String 
		{
			return "'The Haunter of the Dark', by H.P. Lovecraft";
		}
		
	}

}